import React from 'react'
import './inedx.scss';
type Props= {
  history:any,
}
export default class Back extends React.Component<Props>{
  constructor(props:any){
    super(props)
  }
  state = {
  }
  goHome(){
    console.log();
    this.props.history.goBack();
  }
  render () {
    return (
    <div className="backhome flex alignitems" onClick={()=>this.goHome()}>返回首页</div>
    );
  }
}
